package com.leesche.zcsp.node.web.dao;

import com.leesche.zcsp.node.web.model.PubDevicePayDetail;
import com.leesche.zcsp.node.web.model.PubDevicePayDetailCriteria;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDevicePayDetailDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDevicePayDetailCondition;

import java.util.List;
import java.util.Map;


public interface PubDevicePayDetailDao extends BaseDao<PubDevicePayDetail, PubDevicePayDetailCriteria, PubDevicePayDetailDto, QueryPubDevicePayDetailCondition, Long> {

    /**
     * @Title: selectPayTetailByDeviceidAndUploadTime
     * @Description: TODO( 根据设备id和账目时间段查询账目流水 )
     * @author Jerry Chan
     * @date 2016-11-07 12:24:53
     * @param condition 查询条件
     * @return 账目流水
     */
    List<PubDevicePayDetail> selectPayTetailByDeviceidAndUploadTime(QueryPubDevicePayDetailCondition condition);

    /** 
     * @Title:  countPayDetailByCondition
     * @Description: TODO( 根据查询条件统计交易流水的条数 )
     * @author Jerry Chan
     * @date 2016/11/25 23:23
     * @return 交易流水的总条数
     */
    Integer countPayDetailByCondition(QueryPubDevicePayDetailCondition condition);

    int updateByConditionMap(Map map);

}